from django.urls import path
from apps.book.views.publisher_views import publisher_list, publisher_add, publisher_edit, publisher_delete
from apps.book.views.book_views import book_list, book_add, book_edit, book_delete
from apps.book.views.author_views import author_list, author_add, author_edit, author_delete

app_name = 'book'
urlpatterns = [
    # 出版社管理
    path('publisher/list/', publisher_list, name='publisher_list'),
    path('publisher/add/', publisher_add, name="publisher_add"),
    path('publisher/edit/', publisher_edit, name="publisher_edit"),
    path('publisher/delete/', publisher_delete, name='publisher_delete'),
    # 图书管理
    path('list/', book_list, name='book_list'),
    path('add/', book_add, name="book_add"),
    path('edit/', book_edit, name="book_edit"),
    path('delete/', book_delete, name='book_delete'),
    # 作者管理
    path('author/list/', author_list, name='author_list'),
    path('author/add/', author_add, name="author_add"),
    path('author/edit/', author_edit, name="author_edit"),
    path('author/delete/', author_delete, name='author_delete'),
]
